package sm.validate.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import sm.validate.DataTypeValidatorImpl;
import sm.validate.api.DataTypeValidator;

public class ValidateDataTypeMain {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		if (args.length == 1) {
			String contextFile = args[0].trim();
			ApplicationContext context = new ClassPathXmlApplicationContext(
					contextFile);

			DataTypeValidator dataTypeValidator = new DataTypeValidatorImpl(
					context);
			dataTypeValidator.validateDataType();
		}
	}
}
